From: Eli Zaretskii Date: Sat, 10 May 2008 07:56:42 +0000 (+0000) Subject: (stat): Fix test of Vw32_get_true_file_attributes against the value returned X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18855^2~200 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fbc4a2f453b86bf2281e00650ac08372149c9458;p=emacs.git (stat): Fix test of Vw32_get_true_file_attributes against the value returned by GetDriveType. --- diff --git a/src/w32.c b/src/w32.c index 894160a275d..aa6c21e4402 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2491,9 +2491,9 @@ stat (const char * path, struct stat * buf) } } - if (!NILP (Vw32_get_true_file_attributes) - && !(EQ (Vw32_get_true_file_attributes, Qlocal) && - GetDriveType (name) == DRIVE_FIXED) + if (!(NILP (Vw32_get_true_file_attributes) + || (EQ (Vw32_get_true_file_attributes, Qlocal) && + GetDriveType (name) != DRIVE_FIXED)) /* No access rights required to get info. */ && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL))